Skip to content

Instantly share code, notes, and snippets.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@strauss49
strauss49 / llm-wiki.md
Created May 2, 2026 04:01 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@dirumahrafif
dirumahrafif / readme.md
Created October 1, 2025 10:09
Konfigurasi Nginx Untuk Mengarahkan Domain

Install nginx

sudo apt install nginx

cek firewall

sudo ufw app list

buka port 80

@miurhz
miurhz / BMW_USB_Software_Update.md
Last active May 2, 2026 03:46
USB firmware update files for BMW CIC (Multimedia) and Combox (Bluetooth/Telephone), no longer available on official servers. Includes download links (from official site) and instructions for updating via USB.

BMW CIC & Combox USB Firmware Updates

Officially titled: BMW Software Update for External Devices – Multimedia and Telephone

ℹ️ About This Guide:

  • I am not pro at any of this. I started to search for information how to update vehicle's multimedia because of my own Bluetooth issue.
  • As BMW no longer provided software updates on their main site at that time, the task was to find is it still possible to get them.
  • After long searches I managed to solve my issue successfully and decided to put everything I found in one place.